package com.itcast.springboot.waste_recovery.service.impl;

import com.itcast.springboot.waste_recovery.domain.UserHelp;
import com.itcast.springboot.waste_recovery.mapper.UserHelpMapper;
import com.itcast.springboot.waste_recovery.service.UserHelpService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户帮助中心 服务实现类
 * </p>
 *
 * @author 小破烂
 * @since 2020-08-19
 */
@Service
public class UserHelpServiceImpl extends ServiceImpl<UserHelpMapper, UserHelp> implements UserHelpService {

    @Resource
    UserHelpMapper userHelpMapper;

    @Override
    public List<UserHelp> getUserHelps() {
        List<UserHelp> userHelps = userHelpMapper.selectList(null);
        return userHelps;
    }
}
